Skip to content

DataGrid - Focused cell highlight on sticky columns is still visible even when the focused cell is outside the viewport (T1310313)#33284

Open
markallenramirez wants to merge 1 commit intoDevExpress:26_1from
markallenramirez:bug_T1310313/26_1
Open

DataGrid - Focused cell highlight on sticky columns is still visible even when the focused cell is outside the viewport (T1310313)#33284
markallenramirez wants to merge 1 commit intoDevExpress:26_1from
markallenramirez:bug_T1310313/26_1

Conversation

@markallenramirez
Copy link
Copy Markdown
Contributor

No description provided.

@markallenramirez markallenramirez self-assigned this Apr 15, 2026
@markallenramirez markallenramirez requested a review from a team as a code owner April 15, 2026 11:12
Copilot AI review requested due to automatic review settings April 15, 2026 11:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a DataGrid sticky-columns focus-overlay behavior where the focused cell highlight could remain visible on sticky columns even after the focused cell scrolls out of the viewport.

Changes:

  • Removed the sticky-columns-specific getFocusOverlayContainer override so the focus overlay uses the base EditorFactory container logic.

Comment on lines 745 to 749
// @ts-expect-error
return this.getOverlayContainerIfNeeded($cell) ?? super.getRevertButtonContainer($cell);
}

protected getFocusOverlayContainer($focusedElement: dxElementWrapper): dxElementWrapper {
return this.getOverlayContainerIfNeeded($focusedElement)
?? super.getFocusOverlayContainer($focusedElement);
}

protected overlayPositionedHandler(e, isOverlayVisible: boolean): void {
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change alters how the focused cell overlay chooses its container for sticky columns (by removing the sticky-columns-specific getFocusOverlayContainer override). There are no regression tests covering the reported scenario (focused cell moved outside the viewport while sticky columns remain visible). Please add a QUnit test (e.g. in DevExpress.ui.widgets.dataGrid/stickyColumns.tests.js or focus-related DataGrid tests) that scrolls horizontally so the focused cell is out of view and asserts the focus overlay/highlight is not visible on the sticky area.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants